package com.tamtamy.jtta.data.json;

import net.sf.json.JSONObject;

import com.tamtamy.jtta.data.NetworkDetails;
import com.tamtamy.jtta.utility.JSONUtility;

public class JSONNetworkDetails extends NetworkDetails {
	
	public JSONNetworkDetails(JSONObject jsonObject) {
		super();
		this.id = JSONUtility.getString(jsonObject, "id");
		this.network = JSONUtility.getString(jsonObject, "name");
		this.creationDate = JSONUtility.getDate(jsonObject, "creationDate");
		this.name = JSONUtility.getString(jsonObject, "name");
		this.userCounter = JSONUtility.getString(jsonObject, "userCounter");
		this.countentCounter = JSONUtility.getString(jsonObject, "contentCounter");
		this.description =  JSONUtility.getString(jsonObject, "description");
		this.permalink =  JSONUtility.getString(jsonObject, "permalink");
		this.chatEnabled = JSONUtility.getBoolean(jsonObject, "chatEnabled");
	}

}
